package com.juneng.mapper;

import com.juneng.entity.BookType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.juneng.dto.BookTypeQueryDto;
import com.juneng.vo.BookTypeChildrenVo;
import com.juneng.vo.BookTypeVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  Mapper 接口
 *
 * @author zds
 * @since 2021-07-14
 */
public interface BookTypeMapper extends BaseMapper<BookType> {
        IPage<BookTypeVo> page(IPage page, @Param("dto")BookTypeQueryDto dto);

        IPage<BookTypeVo> sonPage(IPage<BookTypeVo> page, BookTypeQueryDto dto);

        IPage<BookTypeVo> getPage(IPage<BookTypeVo> page, BookTypeQueryDto dto);

        List<BookTypeChildrenVo> selectChildren();
}
